/*
 * @(#)EnginRepository.java $version 2012. 2. 22.
 *
 */

package com.mywep.myalimi.repository.engine;

import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.mywep.myalimi.model.Engine;
import com.mywep.myalimi.model.Keyword;

import com.nhncorp.lucy.spring.core.util.ExtendedMap;

/**
 * @author 한지웅
 */
public class EngineRepository extends SqlMapClientDaoSupport {
	public int countByExample(ExtendedMap param) {
		return (Integer)getSqlMapClientTemplate().queryForObject("engine.countByExample", param);
	}

	@SuppressWarnings("unchecked")
	public List<Keyword> selectByExample(ExtendedMap param) {
		return getSqlMapClientTemplate().queryForList("engine.selectByExample", param);
	}

	@SuppressWarnings("unchecked")
	public List<Keyword> selectByPrimaryKey(Engine param) {
		return getSqlMapClientTemplate().queryForList("engine.selectByExample", param);
	}
}
